/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: LogObjectHolder
 * Author:   zhouheng
 * Date:     2018/6/24 21:29
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.core.log;

import com.hengby.hengcrud.core.util.SpringContextHold;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

/**
 * 〈一句话功能简述〉<br> 
 * 〈被修改的bean临时存放的地方〉
 *
 * @author zhouheng
 * @create 2018/6/24
 * @since 1.0.0
 */
@DependsOn(value = "springContextHold")
@Component
public class LogObjectHolder {
    public Object object = null;

    public static LogObjectHolder me(){
        return SpringContextHold.getBean(LogObjectHolder.class);
    }

    public void set(Object object) {
        this.object = object;
    }

    public Object get() {

        return object;
    }
}